package cn.microservices.cloud.common.mybtis.core.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

public enum Flag {
	YES("1", "是"), NO("0", "否");
	@EnumValue
	private final String code;
	private final String text;

	Flag(String code, String text) {
		this.code = code;
		this.text = text;
	}

	public String getCode() {
		return code;
	}

	public String getText() {
		return text;
	}
}
